﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Globalization;
using LKVService;
using LKVMLMLib;
using System.Web.Mvc;

namespace LKVMLMADMIN.Models
{
    public class NewsModel
    {
        public int ID { get; set; }

        [Required]
        [StringLength(1000, ErrorMessage = "Nhập tên bài viết(lớn hơn 6 ký tự)", MinimumLength = 6)]
        public string TenBaiViet { get; set; }
        public int DanhMuc_Id { get; set; }
        public string TenDanhMuc { get; set; }

        [Required]
        [StringLength(100000000, ErrorMessage = "Nhập nội(lớn hơn 6 ký tự)", MinimumLength = 6)]
        [AllowHtml]
        public string NoiDung { get; set; }
        public DateTime? NgayTao { get; set; }
        public string NguoiTao { get; set; }
        public bool Status { get; set; }
        public IEnumerable<SelectListItem> DanhMucItem { get; set; }
        public int _type { get; set; }
    }
}